package com.yike.order.api.service;

import com.yike.order.api.param.ShopDataStatisticsFeignParam;
import com.yike.order.api.service.hystrix.OrderFeignHystrix;
import com.yike.order.api.vo.ShopDataStatisticsFeignVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "order-service", fallback = OrderFeignHystrix.class)
public interface OrderFeignService {

    @ApiOperation(value = "店铺数据统计")
    @PostMapping("/feign/order/getShopDataStatistics")
    ShopDataStatisticsFeignVo getShopDataStatistics(@RequestBody ShopDataStatisticsFeignParam shopDataStatisticsFeignParam);
}
